# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""
import docx
# from docx.enum.text import WD_ALIGN_PARAGRAPH

myDocument = docx.Document("散文名篇.docx")

myParagraph=myDocument.paragraphs[1]
for myRun in myParagraph.runs:
	myEmphasize=docx.oxml.shared.OxmlElement('w:em')
	myEmphasize.set(docx.oxml.ns.qn('w:val'),'dot')
	myRun.element.rPr.append(myEmphasize)

myDocument.save("02散文名篇.docx")
